package com.mongodb.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhangbowen
 * @date 2019/2/15
 **/
@Mapper
public interface UserMapper {
    @Insert({"insert into user(name,age)",
            "values(#{user},#{age})"})
    void addUser(@Param("user") String user, @Param("age") Integer age);
}
